package dao

import (
	"github.com/go-xorm/xorm"

	"im/model"
	"im/service/orm"
)

type PushLog struct {
	db *xorm.Engine
}

func NewPushLog() *PushLog {
	return &PushLog{db: orm.GetDB()}
}

func (p PushLog) Insert(m model.PushLog) error {
	_, err := p.db.InsertOne(&m)
	return err
}
